﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commonality.DTO.AuthorityDTO
{
    public class TwoTablesDTO
    {
        public int? RoleID { get; set; }
        /// <summary>
        /// 父级角色ID
        /// </summary>
        public int? Parent_id { get; set; }
        /// <summary>
        /// 账户
        /// </summary>
        [Required(ErrorMessage = "账户非空")]
        public string? Account { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessage = "名称非空")]
        public string? RoleName { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        [Required(ErrorMessage = "角色描述非空")]
        public string? Description { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool? IsDelet { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int? UsleID { get; set; }
        /// <summary>
        /// 登录账户
        /// </summary>
        [Required(ErrorMessage = "登录账户非空")]
        public string? Login_Name { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        [Required(ErrorMessage = "登录账户非空")]
        public string? UserName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [Required(ErrorMessage = "登录密码非空")]
        public string? Password { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        [Required(ErrorMessage = "真实姓名非空")]
        public string? RealName { get; set; }
        /// <summary>
        /// 英文名称
        /// </summary>
        [Required(ErrorMessage = "英文名称非空")]
        public string? EnglishName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool? Gender { get; set; }
        /// <summary>
        /// 国际电话
        /// </summary>
        [Required(ErrorMessage = "国际电话非空")]
        public string? Phone { get; set; }
        /// <summary>
        /// 移动电话
        /// </summary>
        [Required(ErrorMessage = "移动电话非空")]
        public string? Mobile { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [Required(ErrorMessage = "邮箱非空")]
        public string? Email { get; set; }
        /// <summary>
        /// 启用禁用
        /// </summary>
        public bool? Enabled { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        //public bool IsDelet { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int? Type { get; set; }

    }
}
